home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
csh4.zip
/
DRIVE.C
< prev
next >
Wrap
C/C++ Source or Header
|
1985-09-03
|
214b
|
13 lines
#define NULL (void *)0
drive(argc,argv)
char *argv[];
{
char *dir,*getcwd();
bdos(0xe,**argv - 'a'); /* select drive 0 */
if (NULL == (dir = getcwd(NULL,64)))
return -1;
free(dir);
return 0;
}